Skip to content

backport(v0.5.x): guest security fixes from next - #1571

Merged
kvinwang merged 8 commits into
release/v0.5.xfrom
backport/v0.5.x-security-2026-11
Nov 12, 2026
Merged

kvinwang merged 8 commits into
release/v0.5.xfrom
backport/v0.5.x-security-2026-11

Conversation

@kvinwang

@kvinwang kvinwang commented Nov 12, 2026 •

Copy link
Copy Markdown
Collaborator

Backports guest-side security fixes from next that release/v0.5.x does not have yet. Only the guest OS stays on 0.5.x, so host components (KMS, gateway, VMM, service images) are left to 0.6.x. Each commit references its next original.

  • dstack-util: refuse to boot when an encrypted env is present but the key provider gives no env crypt key, instead of dropping it silently (fd6a07a)
  • dstack-util: validate the gateway's WireGuard fields before rendering the root-run wg-quick config (e835d61, hand-ported)
  • ra-rpc: check the TLS handshake signature when CA verification is skipped, so the guest's attested KMS connection cannot be served with a replayed certificate (7ed5475)
  • rustls-webpki 0.103.16 for the emSign CA compromise (8932038)
  • guest-agent: saturate oversized log durations (452679d); ra-rpc: pin swagger-ui with SRI (36aa495)

Guest binaries change, so the rebuilt guest image needs its os_image_hash registered.

…wing

Signed-off-by: Kevin Wang <wy721@qq.com>
(cherry picked from commit 452679d)
Signed-off-by: Kevin Wang <wy721@qq.com>
Signed-off-by: Kevin Wang <wy721@qq.com>
(cherry picked from commit 36aa495)
Signed-off-by: Kevin Wang <wy721@qq.com>
Signed-off-by: Kevin Wang <wy721@qq.com>

(cherry picked from commit e835d61, hand-ported to the 0.5.x single-gateway setup)
Signed-off-by: Kevin Wang <wy721@qq.com>
Signed-off-by: Kevin Wang <wy721@qq.com>

(cherry picked from commit 7ed5475)
Signed-off-by: Kevin Wang <wy721@qq.com>
rustls-webpki 0.103.16 (RUSTSEC-2026-0383, CVE-2026-111943) rejects any
chain that contains one of the compromised eMudhra/emSign intermediate
CA keys, whatever the trust store holds.

cargo also moves aws-lc-rs and aws-lc-sys forward (adding pkg-config),
which rustls-webpki 0.103.16 requires.

(cherry picked from commit 8932038, Cargo.lock regenerated for 0.5.x)
Signed-off-by: Kevin Wang <wy721@qq.com>
The local, tpm and none key providers hand out no env crypt key, and a
present .encrypted-env was then silently dropped, booting the app with
none of its secrets. Refuse to boot instead.

Also document that an empty key_provider_id pins nothing, and that the
env envelope is bound to the app ID only and can be replayed by the host.

(cherry picked from commit fd6a07a, without the docs/security/cvm-boundaries.md wording that 0.5.x does not carry)
Signed-off-by: Kevin Wang <wy721@qq.com>
@kvinwang
kvinwang force-pushed the backport/v0.5.x-security-2026-11 branch from b3e3232 to 0d3e63c Compare November 12, 2026 15:37
@kvinwang kvinwang changed the title backport(v0.5.x): security fixes from next backport(v0.5.x): guest security fixes from next Nov 12, 2026
The runner's default Python moved to 3.14, which pydantic-core's PyO3
cannot build for, and hishel 2 breaks PDM's HTTP cache.

(cherry picked from commits 92525da89e8c and a0867dc, adapted to the 0.5.x workflow)

Signed-off-by: Kevin Wang <wy721@qq.com>
…unavailable

GitHub runners no longer provide vsock, so the bind test fails there. next
marks it ignored the same way.

Signed-off-by: Kevin Wang <wy721@qq.com>
@kvinwang
kvinwang merged commit ed2f77e into release/v0.5.x Nov 12, 2026
9 checks passed
@kvinwang
kvinwang deleted the backport/v0.5.x-security-2026-11 branch November 12, 2026 16:09
@kvinwang kvinwang mentioned this pull request Nov 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant